import {lazy} from "react";
import {Navigate} from "react-router-dom";


const Class = lazy(() => import("./Class"))
const Subject = lazy(() => import("./Subject"))
const ProjectType = lazy(() => import("./ProjectType"))


export default [
  // 主页面路由
  {
    path: "/main/academicAffairs", children: [
      {path: "/main/academicAffairs", element: <Navigate replace to="/main/academicAffairs/class"/>},
      {path: "/main/academicAffairs/class", element: <Class/>},
      {path: "/main/academicAffairs/subject", element: <Subject/>},
      {path: "/main/academicAffairs/projectType", element: <ProjectType/>}
    ]
  },
]